unit grid_harness_unit;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, BitGrid;

type
  TForm1 = class(TForm)
    CheckBox1: TCheckBox;
    CheckBox2: TCheckBox;
    procedure CheckBox1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;
  Cell : tBitCell;

implementation

{$R *.DFM}

procedure TForm1.CheckBox1Click(Sender: TObject);
begin
  Cell.Input[west] := Checkbox1.Checked;
  Checkbox2.Checked := Cell.Output[East];
end;

procedure TForm1.FormCreate(Sender: TObject);
var
  x : ^boolean;
begin
  Cell := tBitCell.Create;
  Cell.AsHex := PassThrough;
  Cell.Input[west] := Checkbox1.Checked;
  Checkbox2.Checked := Cell.Output[East];
end;

end.
